'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadValueFunction(Of TValue)( _ ByVal dataVariable As UADataVariable, _ ByVal readValueFunction As Func(Of TValue), _ ByVal ParamArray arrayDimensions() As Integer _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim readValueFunction As Func(Of TValue) Dim arrayDimensions() As Integer Dim value As UADataVariable value = UADataVariableExtension.ReadValueFunction(Of TValue)(dataVariable, readValueFunction, arrayDimensions)
[Extension()] [NotNull()] public static UADataVariable ReadValueFunction<TValue>( UADataVariable dataVariable, Func<TValue> readValueFunction, params int[] arrayDimensions )
[Extension()] [NotNull()] public: static UADataVariable^ ReadValueFunctiongeneric<typename TValue> ( UADataVariable^ dataVariable, Func<TValue^>^ readValueFunction, ... array<int>^ arrayDimensions )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - readValueFunction
- The read value function, i.e. the function that performs the read operation and returns the value that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - arrayDimensions
- The size of each dimension of the array value.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TValue
- The type of the value of the data variable.
Return Value
This method never returns null
(Nothing
in Visual Basic).